home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / setregid.man < prev    next >
Encoding:
Text File  |  1989-11-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SETREGID              C Library Procedures               SETREGID
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      setregid - set real and effective group ID
  10.  
  11. SSYYNNOOPPSSIISS
  12.      sseettrreeggiidd((rrggiidd,, eeggiidd))
  13.      iinntt rrggiidd,, eeggiidd;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      The real and effective group ID's of the current process are
  17.      set to the arguments.  Unprivileged users may change the
  18.      real group ID to the effective group ID and vice-versa; only
  19.      the super-user may make other changes.
  20.  
  21.      Supplying a value of -1 for either the real or effective
  22.      group ID forces the system to substitute the current ID in
  23.      place of the -1 parameter.
  24.  
  25. RREETTUURRNN VVAALLUUEE
  26.      Upon successful completion, a value of 0 is returned.  Oth-
  27.      erwise, a value of -1 is returned and _e_r_r_n_o is set to indi-
  28.      cate the error.
  29.  
  30. EERRRROORRSS
  31.      [EPERM]        The current process is not the super-user and
  32.                     a change other than changing the effective
  33.                     group-id to the real group-id was specified.
  34.  
  35. SSEEEE AALLSSOO
  36.      getgid(2), setreuid(2), setgid(3)
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.